const express = require('express');
const router = express.Router();

router.get('/forDealerPartInformation', (req, res) => {
    const content = [];
    for(let i = 0; i < 40; i++) content.push({
        id: `${i + 1}`,
        code: `201900${i}`,
        name: `JXSMC00${i}`,
        account: `Eng${i}`,
        type: 1,
    });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 40,
        }
    });
});

router.get('/forPartOrderPi', (req, res) => {
    const content = [];
    for(let i = 0; i < 40; i++) content.push({
        id: `${i + 1}`,
        code: `201900${i}`,
        name: `JXSMC00${i}`,
        account: `Eng${i}`,
        type: 1,
    });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 40,
        }
    });
});

module.exports = router;
